package com.library.common.enums;

import lombok.Getter;

/**
 * @ClassName: BorrowRecordType
 * @Description: 借阅记录类型
 * @Author: hb
 * @Date: 2024/9/27
 */
@Getter
public enum BorrowRecordType {
    /**
     * 借阅
     */
    BORROWING("0", "借阅"),

    /**
     * 归还
     */
    RETURN("1", "归还"),

    /**
     * 续借
     */
    RENEW("2", "续借");



    private final String code;
    private final String info;

    BorrowRecordType(String code, String info) {
        this.code = code;
        this.info = info;
    }

    public boolean equals(String source) {
        return this.getCode().equals(source);
    }


}
